import Layout from '@/layout'



export default {
  path: '/',
  component: Layout,
  redirect: '/document',
  children: [{
    path: 'document',
    name: 'document',
    component: () => import('@/views/document/index'),
    children: [{
      path: 'recent',
      component: () => import('@/views/document/recent/index'),
      name: 'recent',
      meta: {
        defaultActive: '/document/recent'
      }
    }, {
      path: 'setting/:repositoryId',
      component: () => import('@/views/document/setting/index'),
      name: 'setting',
      meta: {
        defaultActive: '/document/repository/0'
      }
    }, {
      path: 'file/:repositoryId',
      component: () => import('@/views/document/file/index'),
      name: 'team_repository_file',
      meta: {
        defaultActive: '/document/repository/0'
      },
      alias: 'repository_file/:repositoryId'
    },
    {
      path: 'file/:repositoryId',
      component: () => import('@/views/document/file/index'),
      name: 'my_repository_file',
      meta: {
        defaultActive: '/document/my_repository'
      },
      alias: 'my_repository_file/:repositoryId'
    }, {
      path: 'directoryLayout/:repositoryId',
      component: () => import('@/views/document/file/directoryLayout'),
      name: 'directoryLayout',
      meta: {
        defaultActive: '/document/directoryLayout'
      }
    }, {
      path: 'my_repository',
      component: () => import('@/views/document/my_repository/index'),
      name: 'my_repository',
      meta: {
        defaultActive: '/document/my_repository'
      }
    },
    {
      path: 'repository/:userGroupId',
      component: () => import('@/views/document/repository/index'),
      name: 'repository',
      meta: {
        defaultActive: '/document/repository/'
      }
    }, {
      path: 'tag',
      component: () => import('@/views/document/tag/index'),
      name: 'tag',
      meta: {
        defaultActive: '/document/tag'
      }
    }, {
      path: 'favorite',
      component: () => import('@/views/document/favorite/index'), name: 'favorite',
      meta: {
        defaultActive: '/document/favorite'
      }
    }, {
      path: 'share_to',
      component: () => import('@/views/document/share_to/index'), name: 'share_to',
      meta: {
        defaultActive: '/document/share_to'
      }
    }, {
      path: 'share_from',
      component: () => import('@/views/document/share_from/index'), name: 'share_from',
      meta: {
        defaultActive: '/document/share_from'
      }
    }, {
      path: 'collaboration_to',
      component: () => import('@/views/document/collaboration_to/index'), name: 'collaboration_to',
      meta: {
        defaultActive: '/document/collaboration_to'
      }
    }, {
      path: 'collaboration_from',
      component: () => import('@/views/document/collaboration_from/index'), name: 'collaboration_from',
      meta: {
        defaultActive: '/document/collaboration_from'
      }
    }, {
      path: 'recycle_bin',
      component: () => import('@/views/document/recycle_bin/index'), name: 'recycle_bin',
      meta: {
        defaultActive: '/document/recycle_bin'
      }
    },
    {
      path: 'my_repository_set/:repositoryId',
      component: () => import('@/views/document/my_repository_set'), name: 'my_repository_set',
      meta: {
        defaultActive: '/my_repository'
      }
    },
    {
      path: 'flow_standingBook _file',
      component: () => import('@/views/flow/flow_standingBook _file'),
      name: 'flow_standingBook _file',
      meta: {
        defaultActive: '/document/flow_standingBook _file'
      }
    }
    ]
  }]
}
